Generating CSRs
Document Control
- Created: 2023-09-02
- Last Updated: 2023-09-16
What is a CSR?
CSR stands for Certificate signing request.
The CSR contains information (e.g. common name, organization, country) the Certificate Authority (CA) will use to create your certificate. It also contains the public key that will be included in your certificate and is signed with the corresponding private key.
Creating one (Windows IIS)
The most common method of generating or creating a CSR is via Internet Information Services (IIS), which is a microsoft product that runs on the Windows OS as part of a server installation.
There are lots of different methods to generate a CSR file, it depends on what operation system you're running. Try this link for more information.
- Access the Server: Remote Desktop (RDP) or log in to a Windows machine running IIS.
- Open IIS: To open the Internet Information Services (IIS) Manager, simply type "IIS" in the Windows start menu search bar and click on the app when it appears.
- Select the Server: Inside the IIS Manager, locate and click on the Server Name corresponding to your IIS instance.
- Manage Certificates: In the center menu, navigate to the Security section and double-click on Server Certificates.
- Create Certificate Request: Within the Server Certificates window, go to the Actions menu on the right and select Create Certificate Request.
- Complete Certificate Request: The Request Certificate Wizard will appear. You will be prompted to enter specific information in the Distinguished Name Properties window. Fill in the required details as instructed.
- Proceed: After entering the necessary information, click Next to continue the certificate request process.
You must fill the Common Name in with the domain that you wish to cover with the certificate. If you wanted to create a certificate for "www.finepies.com", that is what must be in the Common Name field.
- In the Cryptographic Service Provider Properties window leave the top field as Microsoft RSA SChannel Cryptographic Provider.
- Make sure the minimum Bit length is set ot 2048 or higher.
- Click Next.
- Save the text file someone easy to find and you're done.
Take the CSR file to your certificate authority, internal or externally hosted and upload your CSR, you'll get a certificate back again.
Final steps
Depending on what you want to use the certificate for, you may need to "complete" the certificate.
- Access IIS again.
- From the center menu double-click Server Certificates in the Security section.
- Click Complete Certificate Request.
- Complete the Wizard and it will have imported the certificate into the store you selected.
You'll now be able to export the certificate and the private key should you need to.